package com.lucaswangdev.logindemo.model.mapper;

import com.lucaswangdev.logindemo.model.domain.ConceptDO;
import com.lucaswangdev.logindemo.model.domain.ConceptParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;

/**
 * ConceptMapper
 */
@Mapper
public interface ConceptMapper{
    /**
     * insert entity
     * @param conceptDO
     * @return
     */
    int insert(@Param("concept") ConceptDO conceptDO);

    /**
     * 根据where条件count
     * @param conceptParam
     * @return
     */
    long countByParam(@Param("concept") ConceptParam conceptParam);

    List<ConceptDO> selectByParam(@Param("concept") ConceptParam conceptParam);


    List<ConceptDO> selectAllByParam(@Param("concept") ConceptParam conceptParam);

    /**
     * update selective
     * @param conceptDO
     * @return
     */
    int updateByPrimaryKeySelective(@Param("concept") ConceptDO conceptDO);

    /**
     * 删除
     * physical delete
     * @param id
     * @return
     */
    int deleteByPrimaryKey(@Param("id") Long id);


    ConceptDO selectByPrimaryKey(@Param("id") Long id);


    /**
     * insert entity selective.
     * @param conceptParam
     * @return
     */
    int insertSelective(@Param("concept") ConceptParam conceptParam);

    /**
     * batch insert entity
     * @param list
     * @return
     */
    int insertBatch(@Param("list") List<ConceptDO> list);

    /**
     * update
     * @param conceptDO
     * @return
     */
    int updateByPrimaryKey(@Param("concept") ConceptDO conceptDO);

    /**
     * selectCount
     * @param concept     * @return
     */
    int selectCount(@Param("concept") ConceptDO concept);

    /**
     * selectPage
     * @param concept     * @return
     */
    List<ConceptDO> selectPage(@Param("concept") ConceptDO concept, @Param("pageable") Pageable pageable);

/** The above part of the comment is auto generated, the following part is written by the user, please do not delete this comment. */

}
